package com.pingan.haofang.searchcloud.index.exception;

import com.pingan.haofang.searchcloud.index.constants.IndexBuildStatus;

/**
 * 暂停异常
 *
 * @author SONGBANGYONG396
 * @date 2018/7/25
 * @since 1.0.0
 */
public class PauseException extends RuntimeException {

    private final IndexBuildStatus status;

    public PauseException(IndexBuildStatus status, String message) {
        super(message);
        this.status = status;
    }

    public IndexBuildStatus getStastus() {
        return status;
    }

}
